﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="CampanyCMS.UI.Admin.OnlineService.edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>新增客服</title>
    <link href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
    <link href="../../css/cssCn.css" type="text/css" rel="stylesheet">
    <link href="../../CSS/dd.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../js/jquery.dd.js" type="text/javascript"></script>

    <script>
        $(document).ready(function() {
            $('span[title]').each(function(i) {
                $(this).append('<img src="' + $(this).attr('title') + '" />');
            });

        });
        //1提交，2草稿，0，不验证。
        function ValidationInput(flag) {

            if ($("#ddlChatTools").val() == '') {
                alert("请选择客服类型!");
                $("#ddlChatTools").focus();
                return false;
            }
            if ($("input[type='radio'][name='ddlStyle']:checked").length == 0) {
                alert("请选择显示风格!");
                return false;
            }
            if ($("#txtChatNum").val() == '') {
                alert("请输入 客服帐号!");
                $("#txtChatNum").focus();
                return false;
            }
            if ($("#txtChatShowName").val() == '') {
                alert("请输入 客服显示名!");
                $("#txtChatShowName").focus();
                return false;
            }
        }
    </script>

</head>
<body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table id="tb_content" cellspacing="0" cellpadding="0" align="center">
        <tbody>
            <tr>
                <td>
                    <table class="tb_input" id="queryPane" cellspacing="1" cellpadding="0" width="100%"
                                    align="center" bgcolor="#ffffff" border="0">
                                    <tr>
                                        <td colspan="2">
                                            <img src="../../Img/showtoc.gif">
                                    新增客服
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" width="15%">
                                    客服类型<font color="red">*</font>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlChatTools" runat="server" AppendDataBoundItems="true" AutoPostBack="true"
                                        OnSelectedIndexChanged="ddlChatTyle_SelectedIndexChanged">
                                        <asp:ListItem Text="请选择类型" Value=""></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" width="15%">
                                    显示风格<font color="red">*</font>
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="ddlStyle" runat="server">
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" nowrap width="15%">
                                    客服帐号<font color="red">*</font>
                                </td>
                                <td class="detail" colspan="2">
                                    <asp:TextBox ID="txtChatNum" runat="server" MaxLength="50"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" nowrap width="15%">
                                    客服名称<font color="red">*</font>
                                </td>
                                <td class="detail" colspan="2">
                                    <asp:TextBox ID="txtChatShowName" runat="server" MaxLength="20"></asp:TextBox>
                                </td>
                            </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td align="right" width="100%">
                                <asp:Button ID="btnSave" runat="server" CssClass="button" Text="保存" OnClientClick="return ValidationInput(1)"
                                    OnClick="btnSave_Click"></asp:Button><asp:Button ID="btnReturn" runat="server" CssClass="button"
                                        Text="返回" OnClick="btnReturn_Click"></asp:Button>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
    </table>
   
    </form>
</body>
</html>
